class TanshuBook {
  String? title;
  String? img;
  String? author;
  String? isbn;
  String? isbn10;
  String? publisher;
  String? pubdate;
  String? pubplace;
  String? keyword;
  String? cip;
  String? pages;
  String? price;
  String? binding;
  String? edition;
  String? impression;
  String? language;
  String? format;
  String? summary;

  TanshuBook(
      {this.title,
      this.img,
      this.author,
      this.isbn,
      this.isbn10,
      this.publisher,
      this.pubdate,
      this.pubplace,
      this.keyword,
      this.cip,
      this.pages,
      this.price,
      this.binding,
      this.edition,
      this.impression,
      this.language,
      this.format,
      this.summary});

  TanshuBook.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    img = json['img'];
    author = json['author'];
    isbn = json['isbn'];
    isbn10 = json['isbn10'];
    publisher = json['publisher'];
    pubdate = json['pubdate'];
    pubplace = json['pubplace'];
    keyword = json['keyword'];
    cip = json['cip'];
    pages = json['pages'];
    price = json['price'];
    binding = json['binding'];
    edition = json['edition'];
    impression = json['impression'];
    language = json['language'];
    format = json['format'];
    summary = json['summary'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['title'] = title;
    data['img'] = img;
    data['author'] = author;
    data['isbn'] = isbn;
    data['isbn10'] = isbn10;
    data['publisher'] = publisher;
    data['pubdate'] = pubdate;
    data['pubplace'] = pubplace;
    data['keyword'] = keyword;
    data['cip'] = cip;
    data['pages'] = pages;
    data['price'] = price;
    data['binding'] = binding;
    data['edition'] = edition;
    data['impression'] = impression;
    data['language'] = language;
    data['format'] = format;
    data['summary'] = summary;
    return data;
  }
}
